<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <div id="box">
        {{ name }}
        {{age+1}}
        {{age>20 ? "大" : "小"}}
        <img v-bind:src="url">
    </div>
    <script>
        new Vue({
            el: "#box",
            data: {
                name: "王林",
                age: 18,
                url: "https://tse4-mm.cn.bing.net/th/id/OIP-C.tHAIAaw4ZNlr4v2ldAkvYwHaHa?w=185&h=185&c=7&r=0&o=7&dpr=1.3&pid=1.7&rm=3"
            }
        })
    </script>
</body>

</html>